Skip to content

Deployment development#29

Open
pwflint wants to merge 2 commits intomainfrom
deployment-development
Open

Deployment development#29
pwflint wants to merge 2 commits intomainfrom
deployment-development

Conversation

@pwflint
Copy link
Owner

@pwflint pwflint commented Jan 24, 2026

Current deployment setup

The .gitlab-ci.yml is configured for GitLab Pages deployment with two stages:

  1. Build stage: Validates that index.html exists
  2. Deploy stage: Copies files to a public/ directory for GitLab Pages

Deployment options

Option 1: GitLab Pages (current)

  • Pros: Free, automatic, HTTPS, works with your current config
  • Cons: URL format: https://[namespace].gitlab.io/[project-name]
  • How it works: Push to main/master → pipeline runs → site deploys automatically

Option 2: Custom domain with GitLab Pages

  • Use your own domain (e.g., cv.yourdomain.com)
  • Requires DNS configuration
  • Still uses GitLab Pages infrastructure

Option 3: Deploy to your own server

  • Use the commented SSH/rsync section in the CI file
  • Requires: server, SSH access, CI/CD variables for credentials
  • More control, but you manage the server

Option 4: Other platforms

  • Netlify, Vercel, Cloudflare Pages, etc.
  • Would need a different CI/CD config

Questions

  1. Do you want to use GitLab Pages, or deploy to your own server/domain?
  2. Do you have a custom domain you want to use?
  3. Should I update the CI/CD to remove the analytics.js reference (since we’re using the inline script now)?

@pwflint
Copy link
Owner Author

pwflint commented Jan 24, 2026

Deployment Development - Summary

Changes

  • Enhanced GitHub Actions workflow with build validation step
  • Updated documentation to reflect GitHub Pages as primary deployment method
  • Maintained GitLab CI/CD configuration as alternative option
  • Removed unused analytics.js references from deployment configs

Deployment Method

  • Primary: GitHub Pages via GitHub Actions (.github/workflows/pages.yml)
  • Alternative: GitLab Pages configuration available in .gitlab-ci.yml

Setup Requirements

  1. Enable GitHub Pages in repository settings
  2. Select source: "GitHub Actions" (not "Deploy from a branch")
  3. Workflow automatically deploys on pushes to main branch

Files Changed

  • .github/workflows/pages.yml - Enhanced with validation step
  • README.md - Updated deployment documentation
  • .gitlab-ci.yml - Added notes and cleaned up references

Testing

  • Workflow validates index.html exists before deployment
  • All static assets (HTML, CSS, images) are included in deployment

- Added DEPLOYMENT_MIGRATION_PLAN.md with migration steps
- Updated .gitlab-ci.yml with build/deploy/sync stages and improved validation
- Added .github/workflows/sync-to-gitlab.yml for GitHub→GitLab sync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant